import { Component, OnInit, Input, TemplateRef, Renderer2, ElementRef } from '@angular/core'
import { InputBoolean } from 'ng-zorro-antd'

@Component({
  selector: 'app-store-channel-card',
  templateUrl: './store-channel-card.component.html',
  styleUrls: ['./store-channel-card.component.less'],
})
export class StoreChannelCardComponent implements OnInit {

  @Input() nzTitle: string | TemplateRef<void>
  @Input() nzExtra: string | TemplateRef<void>
  @Input() @InputBoolean() nzOpen = false

  isOpen = false

  constructor(renderer: Renderer2, elementRef: ElementRef) {
    renderer.addClass(elementRef.nativeElement, 'app-store-channel-card')
  }

  ngOnInit() {
  }
}
